package com.hdax.dm.common.api;

import com.hdax.dm.user.DmLinkUser;
import com.hdax.dm.user.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.lang.invoke.CallSite;
import java.util.List;

@RestController
public interface LinkUserConreollerApi {

    @PostMapping(path = "linkUser")
    List<DmLinkUser> userList(@RequestParam("userid") Long userid);
 @PostMapping(path = "linkUserId")
    List<DmLinkUser> userListId(@RequestParam("id") Long id);

    @PostMapping(path = "user")
    List<User> users(@RequestParam("phone")String phone);

    @PostMapping(path = "delect")
    Boolean deleteLinkUser(@RequestParam("linkId")Long linkId);

    @PostMapping(path = "linkUserIdCard")
    Boolean validatebuyerexist(String idCard);

    @PostMapping(path = "save")
    Boolean addticketbuyer(DmLinkUser user);

}
